package commons.downloader;

import java.io.ObjectOutputStream;
import java.net.Socket;

public class ServerDownloader extends Downloader {

	public ServerDownloader(String dirRep) {
		super(dirRep, true);
	}

	//envoie dans la socket
	@Override
	public void download(Socket socket) throws Exception {
		ObjectOutputStream stream = new ObjectOutputStream(socket.getOutputStream());
		stream.writeObject(map);
	}

}
